package com.feihao.zhou.threadAtom;

public class MyThread implements Runnable {
    private volatile int count = 0;
    String s = new String();
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
//            synchronized (s) {           //效率低
                count++;
                System.out.println("送了" +count+"个" );
//            }
        }
    }
}
